var getCoordinates = function(_event){
	pi.get('x').value = _event.clientX;
	pi.get('y').value = _event.clientY;
};

var removeEvent = function(){
	pi.util.RemoveEvent(document.body,'click',getCoordinates);
};

/*
	Set events when dom content is ready.
*/

pi.util.AddEvent(document.body,'click',getCoordinates);
pi.util.AddEvent( pi.get('removeButton'), 'click', removeEvent )
